package com.demo.common.redis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * app info config
 *
 * @author molong
 * @date 2022/6/22
 */
@ConfigurationProperties(prefix = "spring.redis")
@Configuration
@Data
public class RedisProperties {

    /**
     * 是否开启redis监听key过期
     */
    private boolean keyEventExpired;
    /**
     * redis的数据库
     */
    private int database;

}
